#! /bin/bash

# touch chaochao_{1..5}_finished.jpg
# touch chaochao_{1..5}_finished.png
# 去掉剩下的所有jpg文件的_finished字符

for file_name in `ls *fin*jpg`; do mv $file_name `echo ${file_name//_finished/}` ; done

